package com.dayuan.utils;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;

import com.dayuan.bean.BackUser;

/*shiro获取AdminUser对象*/
public class SecurityUtil {

	public static BackUser getBackUser(){
		Subject subject = SecurityUtils.getSubject();
		return  (BackUser) subject.getPrincipal();
	}
	
	
}
